
package cn.javaxc.mvcwork.modules.notifier;
import cn.javaxc.mvcwork.controller.MVCConstant;
import cn.javaxc.mvcwork.modules.admin.User;
import java.net.*;
import java.sql.*;
import java.util.Iterator;




public class ReportBuilder {

  protected java.util.Date start = new java.util.Date();
  protected StringBuffer output = new StringBuffer();
  protected String baseName = "";
  protected String dbUser = "";
  protected String dbPass = "";
  protected int totalRecords = 0;


  
  protected String getIP() {
    String tmp = "";
    try {
      InetAddress localaddr = InetAddress.getLocalHost();
      tmp = localaddr.getHostAddress();
    } catch (UnknownHostException e) {
    }
    return tmp;
  }


  
  protected String getHostName() {
    String tmp = "";
    try {
      InetAddress localaddr = InetAddress.getLocalHost();
      tmp = localaddr.getHostName();
    } catch (UnknownHostException e) {
    }
    if (tmp.indexOf(".") == -1) {
      tmp += ".fumine.com";
    }
    return tmp;
  }



}
